class Solution(object):
    def setZeroes(self, matrix):
        """
        :type matrix: List[List[int]]
        :rtype: None Do not return anything, modify matrix in-place instead.
        """
        row_map = {}
        col_map = {}
        for i in range(len(matrix)):
            for j in range(len(matrix[i])):
                if matrix[i][j] == 0:
                    row_map[i] = 1
                    col_map[j] = 1
        for i in row_map:
            for j in range(len(matrix[i])):
                matrix[i][j] = 0
        for j in col_map:
            for i in range(len(matrix)):
                matrix[i][j] = 0
